﻿using Shop.RemoteModel.CouponGoods;
using Shop.RemoteModel.CouponGoods.Model;
using Shop.StoreGatewayModular.Interface;

namespace Shop.StoreGatewayModular.Service
{
    internal class CouponGoodsService : ICouponGoodsService
    {
        public CouponSkuDatum[] Gets (long couponId)
        {
            return new GetCouponGoods
            {
                CouponId = couponId,
            }.Send();
        }
        public void Delete (long id)
        {
            new DeleteCouponGoods
            {
                Id = id,
            }.Send();
        }
        public CouponSkuDatum[] Set (long couponId, CoupGoods[] goods)
        {
            return new SetCouponGoods
            {
                CouponId = couponId,
                List = goods
            }.Send();
        }

        public void Delete (long couponId, long[] ids)
        {
            new BatchDeleteCouponGoods
            {
                CouponId = couponId,
                Ids = ids
            }.Send();
        }

    }
}
